import axios from "axios";

const baseURL = "/api";
// const baseURL = "http://192.168.1.106:9687";

export function request(config) {
  const instance = axios.create({
    baseURL,
    timeout: 5000,
  });

  // instance.interceptors.request.use((config) => {
  //   return config;
  // });

  // instance.interceptors.response.use((response) => {
  //   return response;
  // });
  return instance(config);
}
